Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 7: Scaling Shapes

../ch07/07fig08b.gif
Figure 7.8b

Scaling up by 2.0 in the X direction, scaling down by 0.5 in the Y direction, scaling up by 4.0 in the Z direction, and building a cylinder.

07fig08b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Transform {
    scale 2.0 0.5 4.0
    children [
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Sphere { }
        }
    ]
}